/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/15
\**********************/
#include "LuaFadeButton.h"

#define CObjPtr ((CFadeButtonUI*)m_cobj)

namespace DuiLib {

int LuaFadeButton::SetNormalImage(LuaState *L)
{
    LuaStack args(L);
    SDTString str = LuaHelperNS::GetTString(args[2]);
    CObjPtr->SetNormalImage(str.c_str());
    return 0;
}

SDLUA_BEGIN_REGISTER(LuaFadeButton, FadeButton, Button)
    SDLUA_REGISTER_FUN_LUA(LuaFadeButton, SetNormalImage, SetNormalImage)
SDLUA_END_REGISTER

SDLUA_BEGIN_UNREGISTER(LuaFadeButton, FadeButton)
SDLUA_END_UNREGISTER(FadeButton)

}

#undef CObjPtr